import React, { Component } from "react";
import {Switch,Route,Redirect} from 'react-router-dom';
import Sidebox from '../../components/siderbox/sidebox';
import TopHeader from "../../components/topheader/topheader";
import Home from './home/home';
import UserList from './userlist/userlist';
import RoleList from './rolelist/rolelist';
import RightList from './rightlist/rightlist';
import NoFound from './nofound/nofound';
import {Layout} from 'antd';
import './sandbox.scss';
const {Content}=Layout;
class NewSandBox extends Component{
    render(){
        return (
         <>
         <Layout style={{minHeight:'100vh'}}>
         <Sidebox></Sidebox>
          <Layout className="site-layout">
          <TopHeader></TopHeader>
          <Content
          className="wap"
          style={{
            
          }}
        >
          <Switch>
            <Route path='/home' component={Home}></Route>
            <Route path='/user-manage/list' component={UserList}></Route>
            <Route path='/right-manage/role/list' component={RoleList}></Route>
            <Route path='/right-manage/right/list' component={RightList}></Route>
            <Redirect from='/' to='/home' exact/>
            <Route path='*' component={NoFound}></Route>
          </Switch>
        </Content>
          </Layout>
         </Layout>
        </>
        )
    }
}
export default NewSandBox;